scores=[89,70,60,85,75,20,23,60,98,100,65,35,85]

groups={'优秀':0,'良':0,'中':0,'及格':0,'不及格':0}

for score in scores:
    if scores>=90:
        groups['优秀']=groups['优秀']+1
    elif scores>=80:
        groups['良'] = groups['良'] + 1
    elif scores>=70:
        groups['中'] = groups['中'] + 1
    elif scores>=60:
        groups['及格'] = groups['及格'] + 1
    else:
        groups['不及格']=groups['不及格']+1
print(groups)


